package com.atguigu08.constructor;

/**
 * ClassName: personTest
 * Description:
 *
 * @Author liu
 * @Create 2024/8/27 14:12
 * @Version 1.0
 */

public class personTest {
    public static void main(String[] args) {
        //构造器的使用
        person p1 = new person();

        person p2 = new person(23);
        System.out.println(p2.age);
        System.out.println(p2.name);
        p2.getinfo();

        person p3 = new person("jfs");
        p3.getinfo();

        person p4 = new person("jjksa",33);
        p4.getinfo();




    }
}
